/**
 * 
 */
package chess;

import java.util.ArrayList;


/**
 * 
 * Horses are afraid of ghosts, and hence, in knight's tour, you need to get away from those ghosts!
 * 
 * This class will be used for Knight's Tour to block you from moving back to places you've been
 * <pre>
 * Max Joyce 
 * -created Class (01/21/10)
 * Andrew Jeffery
 * -add Method (01/22/10)
 * </pre>
 */
public class GhostPiece extends Piece {

	/**
	 * @param p The player that this piece belongs to
	 * @param t The location that the piece should be in
	 */
	public GhostPiece(Player p, Tile t) {
		super(p, t);
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * Ghost pieces can not move and are used as place holders
	 * <pre>
	 * Andrew Jeffery
	 * -add Method
	 * </pre>
	 */
	public ArrayList<Tile> getMovementTiles(){
		this.movementTiles.clear();
		this.movementTiles.add(this.currentTile);
		return this.movementTiles;
	}
	
	/**
	 * @return Returns a string representation of the piece
	 */
	public String toString() {

		return "X";
	}
	public String getName(){
		return "";
	}

}
